From 5f7ac4f0bcbe535f87b634bd4046c668960abcb2 Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Wed, 28 Feb 2007 09:38:14 +0000 Subject: [PATCH] Fix off-by-one preventing the last elfnote from being read in xc.c. Signed-off-by: Brendan Cully --- tools/python/xen/lowlevel/xc/xc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/xen/lowlevel/xc/xc.c b/tools/python/xen/lowlevel/xc/xc.c index f4f3c47f3b..31853538c4 100644 --- a/tools/python/xen/lowlevel/xc/xc.c +++ b/tools/python/xen/lowlevel/xc/xc.c @@ -411,7 +411,7 @@ static PyObject *pyxc_linux_build(XcObject *self, if (!(elfnote_dict = PyDict_New())) goto out; - for (i = 0; i < XEN_ELFNOTE_MAX; i++) { + for (i = 0; i <= XEN_ELFNOTE_MAX; i++) { switch (dom->parms.elf_notes[i].type) { case XEN_ENT_NONE: continue; -- 2.30.2